import java.awt.event.ActionEvent;

import javax.swing.JButton;


public class Jeep extends SpeedModifier {
	JButton rideOn;
	public Jeep(MainCardPanel display, Party p) {
		super(display, p);
		rideOn = new  JButton("Ride Onward.");
		rideOn.addActionListener(this);
		duration = 4;
		speedFactor = 4;
		displayName = "Found a jeep with some gas.";
		imageFilename = "jeep.jpg";
		
	}

	@Override
	public int modifySpeed(int s) {
		return (int) ( ((double) s)*speedFactor );
	}

	@Override
	public void decay() {
		super.decay();
	}

	@Override
	public JButton[] getResponseElements() {
		JButton[] ret = {rideOn};
		return ret;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		super.actionPerformed(e);
	}
}
